96 WDT_A_hold(WDT_A_BASE);
108 ADC12_A_startConversion(ADC12_A_BASE,
110 ADC12_A_SEQOFCHANNELS);
113 __bis_SR_register(LPM4_bits + GIE);
136 ADC12_A_init(ADC12_A_BASE,
137 ADC12_A_SAMPLEHOLDSOURCE_SC,
138 ADC12_A_CLOCKSOURCE_ADC12OSC,
139 ADC12_A_CLOCKDIVIDER_1);
141 ADC12_A_enable(ADC12_A_BASE);
149 ADC12_A_setupSamplingTimer(ADC12_A_BASE,
150 ADC12_A_CYCLEHOLD_256_CYCLES,
151 ADC12_A_CYCLEHOLD_4_CYCLES,
152 ADC12_A_MULTIPLESAMPLESDISABLE);
163 ADC12_A_configureMemoryParam
param = {0};
164 param.memoryBufferControlIndex = ADC12_A_MEMORY_0;
165 param.inputSourceSelect = ADC12_A_INPUT_TEMPSENSOR;
166 param.positiveRefVoltageSourceSelect = ADC12_A_VREFPOS_INT;
167 param.negativeRefVoltageSourceSelect = ADC12_A_VREFNEG_AVSS;
168 param.endOfSequence = ADC12_A_NOTENDOFSEQUENCE;
169 ADC12_A_configureMemory(ADC12_A_BASE ,&
param);
173 ADC12_A_clearInterrupt(ADC12_A_BASE,
175 ADC12_A_enableInterrupt(ADC12_A_BASE,
180 while ( REF_ACTIVE == Ref_isRefGenBusy(REF_BASE) ) ;
182 Ref_setReferenceVoltage(REF_BASE,
185 Ref_enableReferenceVoltage(REF_BASE);
191 TLV_getInfo(TLV_TAG_ADCCAL,
202 #if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
203 #pragma vector=ADC12_VECTOR
205 #elif defined(__GNUC__)
206 __attribute__((interrupt(ADC12_VECTOR)))
210 switch (__even_in_range(ADC12IV,34)){
216 temp = ADC12_A_getResults(ADC12_A_BASE,
struct s_TLV_ADC_Cal_Data * pADCCAL
MPU_initThreeSegmentsParam param
__bic_SR_register_on_exit(LPM3_bits|GIE)